

//
//  MBTableCell.m
//  MBTableView
//
//  Created by MB__Lee on 2019/1/10.
//  Copyright © 2019年 MB__Lee. All rights reserved.
//

#import "MBTableCell.h"
@interface MBTableCell()
@property (weak, nonatomic) IBOutlet UIView *layerView;

@property (weak, nonatomic) IBOutlet UIImageView *titleImage;
@property (weak, nonatomic) IBOutlet UILabel *MBtitleLabel;
@property (weak, nonatomic) IBOutlet UILabel *MBRightLable;
@property (weak, nonatomic) IBOutlet UIImageView *MBRightImage;

@end


@implementation MBTableCell

- (void)awakeFromNib {
    [super awakeFromNib];
    
    self.layerView.backgroundColor = [UIColor whiteColor];
    
    // Initialization co
    self.layerView.layer.borderColor = [UIColor grayColor].CGColor;
    self.layerView.layer.cornerRadius = 5;
    self.layerView.layer.borderWidth = 1;
//    self.layerView.clipsToBounds = YES;
    
    self.layerView.layer.shadowOffset = CGSizeMake(4, 4);
    self.layerView.layer.shadowColor = [UIColor redColor].CGColor;
    self.layerView.layer.shadowRadius = 5;
    self.layerView.layer.shadowOpacity = 0.8;
//    self.layerView.layer.masksToBounds = YES;
   
  
    
    
    
}
-(void)setModel:(id<MBTableCellProtocol>)model{
    self.model = model;
    
    self.titleImage.image = [UIImage imageNamed:model.cell_image];
    self.MBtitleLabel.text = model.cell_titleName;
    self.MBRightLable.text = model.cell_rightName;
    self.MBRightImage.image = [UIImage imageNamed:model.cell_rightImage];
    self.MBRightImage.hidden = model.cell_hidenRightImage;
    
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
